<template>
    <slot message="默认插槽"></slot>
    <hr>
    <slot message="作用域插槽" name="header"></slot>
    <hr>
    <slot :user="user" name="content"></slot>
</template>

<script setup>
import { reactive } from 'vue';

    const user = reactive({ name: '张三',age:'20' })
</script>

<style scoped>

</style>